import request from "@/utils/request.js";
export default{
	login(params) {
		return request({
			url: 'login',
			method: 'post',
			data: params,
			header: {
				isToken: true
			}
		})
	},
	captchaImage(params) {
		return request({
			url: 'captchaImage',
			method: 'get',
			header: {
				isToken: true
			}
		})
	},
	register(params) {
		return request({
			url: 'register',
			method: 'post',
			data: params,
			header: {
				isToken: true
			}
		})
	},
	logOut(params) {
		return request({
			url: 'logout',
			method: 'post'
		})
	}
}